//
//  BasicViewController.h
//  HuaShun
//
//  Created by Fuhao on 16/8/7.
//  Copyright © 2016年 Phenix. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BasicViewController : UIViewController<UITableViewDelegate,UITableViewDataSource>

@property(nonatomic,assign) NSInteger page;
@property(nonatomic,strong) UITableView *tableView;
///没有数据的界面
@property(nonatomic ,strong) UIView *noMsgView;
///没有数据的界面
@property(nonatomic ,strong) UIView *noMsgView2;

///初始化参数
- (void)initVariable;
//初始化ui
-(void)initUI;
//接口调用
-(void)loadData;
//一键创table
-(void)setupTableView:(UITableViewStyle)style header:(BOOL)header footer:(BOOL)footer;
/**
 创建缺省页面view
 @param msgName 图片名称
 @param alertMsg 提示文字
 */
-(void)createViewBynoMsgName:(NSString *)msgName alertMsg:(NSString *)alertMsg;
-(void)createHomeViewBynoMsgName:(NSString *)msgName alertMsg:(NSString *)alertMsg;


/**
 创建缺省页面view2
 
 @param msgName 图片名称
 @param alertMsg 提示文字
 @param alertMsg2 提示文字2
 */
-(void)createViewBynoMsgName2:(NSString *)msgName alertMsg:(NSString *)alertMsg alertMsg2:(NSString *)alertMsg2  height:(NSInteger )height;
-(void)createHomeViewBynoMsgName3:(NSString *)msgName alertMsg:(NSString *)alertMsg;
-(void)createHomeViewBynoMsgName:(NSString *)msgName alertMsg:(NSString *)alertMsg withSize:(CGSize)size;

@property (strong, nonatomic) UIWindow *window;

- (void)CreateNav;

- (void)logintoHome ;
- (void)logouTotLogin ;
@end
